package com.yinhd.study.dockingPlatform;

import com.yinhd.study.dockingPlatform.platform.Platform;
import org.springframework.beans.factory.annotation.Autowired;

public class dockingProcess {

    @Autowired
    queryService queryService;
    @Autowired
    conversionService conversionService;
    @Autowired
    ToDealwithService toDealwithService;

    public  Object docking(Class z){
        Platform platform = PlatformFactory.getPlatform(z);
        Object o = new Object();
        queryService.queryService(platform,o);  //请求数据
        conversionService.conversion(o,o);                           //类型转换
        toDealwithService.toDealWith(o,o);                           //特殊处理
        return null;
    }

}
